package tech.jdbc.entity;

/**
 * Create with Intellij IDEA
 *
 * @Author Q
 * @date 2021/11/26/14:44
 */
public class Point {
    //封装 - 属性私有化,使用private关键字
    private Integer id;
    private String name;


    public Point(){
        System.out.println("空参构造被调用了!!!");
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Point{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
